package handler

import (
	"mxshop_srvs/inventory_srv/dao/mysql"
	"mxshop_srvs/inventory_srv/dao/redis"
	proto "mxshop_srvs/inventory_srv/proto/gen/v1"
)

type Service struct {
	DB  *mysql.Gorm
	RDB *redis.Redis
	proto.UnimplementedInventoryServer
}

// NewService defines a goods service.
func NewService(db *mysql.Gorm, rdb *redis.Redis) *Service {
	return &Service{
		DB:  db,
		RDB: rdb,
	}
}
